package com.cloud.model;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.cloud.model.evnt.Message;
import com.cloud.model.evnt.UserEvent;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jaddy0302 Rivulet User.java 2010-3-17
 * 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
public class PlayUserClient implements UserEvent, Message, java.io.Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@Id
	private String id;

	private String username;
	private String password;

	private String orgi;
	private String creater;
	private Date createtime = new Date();
	private Date updatetime = new Date();
	private long time;//心跳时间
	private Date passupdatetime = new Date();

	private long playerindex;

	private String command; // 指令

	private String memo;
	private String city; // 城市
	private String province;// 省份
	private boolean login; // 是否登录
	private boolean online; // 是否在线
	private String status; //
	private boolean datastatus;// 数据状态，是否已删除
	private boolean headimg; // 是否上传头像

	private String roomid; // 加入的房间ID
	private boolean roomready; // 在房间中已经准备就绪
	private boolean opendeal; // 明牌

	private String gamestatus; // 玩家在游戏中的状态 ： READY : NOTREADY : PLAYING ：MANAGED/托管

	private String playertype; // 玩家类型 ： 玩家：托管玩家，AI

	private String token;

	private String playerlevel;// 玩家级别 ， 等级
	private int experience; // 玩家经验

	private String openid; // 微信
	private String qqid;

	private Date lastlogintime = new Date(); // 最后登录时间

	private int fans; // 粉丝
	private int follows; // 关注
	private int integral; // 积分

	private int cards; // 房卡数量
	private int goldcoins; // 金币数量
	private int diamonds; // 钻石数量
	private String event;
	
	//用户令牌
	private UserToken userToken;
}
